<?php
/**
 * Date: 2018/8/8
 * Time: 14:10
 * Author: zeronlee
 */
Route::group(['namespace'=>'Knowledge'],function(){
    Route::resource('knowledge', 'KnowledgeController');
    //resource route except search function
    Route::get('klgsearch', 'KnowledgeController@search')->name('knowledge.search');
    Route::get('klgshowpage', 'KnowledgeController@showPage')->name('knowledge.showpage');
    Route::post('addcomment', 'KnowledgeController@addComment')->name('knowledge.addcomment');
    Route::get('settop', 'KnowledgeController@setTop')->name('knowledge.settop');
});